﻿namespace CYPlayer.ViewModel
{
    using DataClasses;
    using global::ViewModel;

    public class PlaylistVM : ViewModelBase
    {
        #region Members

        private Playlist _playlist;
        
        #endregion

        public PlaylistVM() { }

        #region Properties

        public Playlist Playlist
        {
            get
            {
                return _playlist;
            }

            set
            {
                _playlist = value;
                RaisePropertyChanged("Playlist");
            }
        }

        public string PlaylistName
        {
            get
            {
                return _playlist.Name;
            }

            set
            {
                _playlist.Name = value; 
                RaisePropertyChanged("PlaylistName");
            }
        }

        public int PlaylistSongsCount
        {
            get
            {
                return _playlist.Count;
            }

            set
            {
                _playlist.Count = value; 
                RaisePropertyChanged("PlaylistSongsCount");
            }
        }

        #endregion
    }
}
